package com.syh.jn.scm.domain.driver.repository.logistics;

import com.syh.core.ddd.infrastructure.repository.AggregateRepository;
import com.syh.jn.scm.domain.driver.entity.logistics.DriverLogisticsBill;
import com.syh.jn.scm.dto.driver.logistics.DriverLogisticsBillItemVo;

import java.util.List;

/**
 * Created by soci.song on 2018/11/8.
 */
public interface DriverLogisticsBillRepository extends DriverLogisticsBillReadRepository,AggregateRepository<DriverLogisticsBill,Long> {

  /**
   * 获取物流单项
   * @param id
   * @return
   */
  List<DriverLogisticsBillItemVo> getItemsByBillId(Long id);

  /**
   * 修改物流单据状态（仅修改主体）
   * @param logisticsBill
   */
  void updateStatus(DriverLogisticsBill logisticsBill);
}
